package com.eonmind.ai.config;

import com.alibaba.cloud.ai.dashscope.api.DashScopeApi;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;

/**
 * @author Xujie
 * @since 2025/4/24 00:12
 **/

//@Configuration
public class DashscopeConfig {
    @Value("${spring.ai.dashscope.api-key}")
    private String apiKey;

    @Value("${spring.ai.dashscope.workspace-id}")
    private String workSpaceId;

    @Bean
    public DashScopeApi dashscopeApi() {
        return new DashScopeApi(apiKey, workSpaceId);
    }
}
